package cn.dakaqi.pingan.services;

import cn.dakaqi.entities.PinganVoucherCenter;
import cn.dakaqi.utils.exception.ServiceRuntimeException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author chunyang on 2016/4/19.
 */
@Component(value = "pinganVoucherCenterService")
@Transactional
public class PinganVoucherCenterServiceImpl implements PinganVoucherCenterService
{
    @Autowired
    PinganVoucherCenterDao pinganVoucherCenterDao;
    @Override
    public void save(PinganVoucherCenter pinganVoucherCenter) throws ServiceRuntimeException
    {
        this.pinganVoucherCenterDao.save(pinganVoucherCenter);
    }
}
